package com.lin.cms.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.lin.cms.criteria.CmsUserCriteria;
import com.lin.cms.domain.CmsUser;

public interface CmsUserMapper {
    int countByExample(CmsUserCriteria example);

    int deleteByExample(CmsUserCriteria example);

    int deleteByPrimaryKey(Integer userId);

    int insert(CmsUser record);

    int insertSelective(CmsUser record);

    List<CmsUser> selectByExample(CmsUserCriteria example);

    CmsUser selectByPrimaryKey(Integer userId);

    int updateByExampleSelective(@Param("record") CmsUser record, @Param("example") CmsUserCriteria example);

    int updateByExample(@Param("record") CmsUser record, @Param("example") CmsUserCriteria example);

    int updateByPrimaryKeySelective(CmsUser record);

    int updateByPrimaryKey(CmsUser record);
    
    CmsUser getUserSites(Integer userId);
    
    CmsUser getByUsername(String username);
    
   List<CmsUser> getAdminList(@Param("siteId") Integer siteId,@Param("allChannel") Boolean allChannel,@Param("disabled") Boolean disabled, @Param("rank") Integer rank);
    
}